export default {
  /***
   * type :0文本显示，1输入，2 弹框选择,3 下拉选择
   *
   */
  // 采购寻源下推
  productAttrList: [
    {
      prokey: 'skuNo',
      proname: '商品代码',
      type: 0,
      width: 100
    },
    {
      prokey: 'categoryName',
      proname: '末级分类',
      type: 2,
      width: 150,
      required: true,
      sel: 0
    },
    {
      prokey: 'classificationName',
      proname: '归类名称',
      type: 3,
      width: 130,
      required: true
    },
    {
      prokey: 'taxRate',
      proname: '销售税率',
      type: 0,
      width: 100
    },
    {
      prokey: 'brandName',
      proname: '品牌',
      type: 2,
      width: 100,
      required: true,
      sel: 2
    },
    {
      prokey: 'seriesUuid',
      proname: '系列',
      type: 3,
      width: 130,
    },
    {
      prokey: 'productName',
      proname: '商品名称',
      type: 0,
      width: 150,
      required: false,
      maxlength: 30
    },
    {
      prokey: 'unitName',
      proname: '计量单位',
      type: 0,
      width: 100,
    },
    {
      prokey: 'material',
      proname: '材质',
      type: 1,
      width: 100
    },
    {
      prokey: 'mainCategoryName',
      proname: '主品类名称',
      type: 1,
      width: 200,
      required: true,
      maxlength: 30
    },
    {
      prokey: 'specModel',
      proname: '规格',
      type: 1,
      width: 200,
      required: true,
      maxlength: 30,
    },
    {
      prokey: 'weight',
      proname: '重量(kg)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'note',
      proname: '特殊要求说明',
      type: 1,
      width: 170
    },
    {
      prokey: 'edge1',
      proname: '最长边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'edge2',
      proname: '次长边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'edge3',
      proname: '最短边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'volume',
      proname: '体积(m3)',
      type: 0,
      width: 100,
      isNum: true
    },
    {
      prokey: 'canCustom',
      proname: '是否定制',
      type: 3,
      width: 100,
      required: true
    },
    {
      prokey: 'saleMin',
      proname: '最小起售量',
      type: 1,
      width: 100,
      isNum: true,
      required: true
    },
    {
      prokey: 'saleResType',
      proname: '销售限制类型',
      type: 3,
      width: 150,
      required: true
    },
    {
      prokey: 'arrivalPeriod',
      proname: '到货周期',
      type: 1,
      width: 100,
      isNum: true,
    },
    {
      prokey: 'createOpeName',
      proname: '创建人',
      type: 0,
      width: 100
    },
    {
      prokey: 'operDeptName',
      proname: '创建人部门',
      type: 0,
      width: 100
    },
    {
      prokey: 'createOpeTime',
      proname: '创建日期',
      type: 0,
      width: 150
    },
  ],
  // 新增 修改临采商品
  temporayProductAttrList: [
    {
      prokey: 'skuNo',
      proname: '商品代码',
      type: 0,
      width: 100
    },
    {
      prokey: 'categoryName',
      proname: '末级分类',
      type: 2,
      width: 150,
      required: true,
      sel: 0
    },
    {
      prokey: 'classificationName',
      proname: '归类名称',
      type: 3,
      width: 130,
      required: true
    },
    {
      prokey: 'taxRate',
      proname: '销售税率',
      type: 0,
      width: 100
    },
    {
      prokey: 'brandName',
      proname: '品牌',
      type: 2,
      width: 100,
      required: true,
      sel: 2
    },
    {
      prokey: 'seriesUuid',
      proname: '系列',
      type: 3,
      width: 130,
    },
    {
      prokey: 'productName',
      proname: '商品名称',
      type: 0,
      width: 150,
      required: false,
      maxlength: 30
    },
    {
      prokey: 'material',
      proname: '材质',
      type: 1,
      width: 100
    },
    {
      prokey: 'mainCategoryName',
      proname: '主品类名称',
      type: 1,
      width: 200,
      required: true,
      maxlength: 30
    },
    {
      prokey: 'specModel',
      proname: '规格',
      type: 1,
      width: 200,
      required: true,
      maxlength: 30,
    },
    {
      prokey: 'unitName',
      proname: '计量单位',
      type: 2,
      width: 100,
      sel: 3,
      required: true
    },
    {
      prokey: 'edge1',
      proname: '最长边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'edge2',
      proname: '次长边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'edge3',
      proname: '最短边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'volume',
      proname: '体积(m3)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'weight',
      proname: '重量(kg)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'canCustom',
      proname: '是否定制',
      type: 3,
      width: 100,
      required: true
    },
    {
      prokey: 'note',
      proname: '特殊要求说明',
      type: 1,
      width: 170
    },
    {
      prokey: 'purchasePrice',
      proname: '进价',
      type: 1,
      width: 120,
      isNum: true
    },
    {
      prokey: 'costPrice',
      proname: '成本价',
      type: 1,
      width: 120,
      required: true,
      isNum: true
    },
    {
      prokey: 'sellPrice',
      proname: '售价',
      type: 1,
      width: 120,
      isNum: true,
      required: true
    },
    {
      prokey: 'saleMin',
      proname: '最小起售量',
      type: 1,
      width: 100,
      isNum: true,
      required: true
    },
    {
      prokey: 'saleResType',
      proname: '销售限制类型',
      type: 3,
      width: 150,
      required: true
    },
    {
      prokey: 'arrivalPeriod',
      proname: '到货周期',
      type: 1,
      width: 100,
      isNum: true,
    },
    {
      prokey: 'createOpeName',
      proname: '创建人',
      type: 0,
      width: 100
    },
    {
      prokey: 'opeTime',
      proname: '创建时间',
      type: 0,
      width: 100
    },
    {
      prokey: 'operDeptName',
      proname: '创建人部门',
      type: 0,
      width: 100
    },
    // 提交后展示该字段
    {
      prokey: 'imageStatus',
      proname: '图文完善状态',
      type: 0,
      width: 100
    },
  ],
  // 修改临采商品
  EDIT_TABLE_COLUMN: [
    {
      prokey: 'skuNo',
      proname: '商品代码',
      type: 0,
      width: 100
    },
    {
      prokey: 'categoryName',
      proname: '末级分类',
      type: 2,
      width: 150,
      required: true,
      sel: 0
    },
    {
      prokey: 'classificationName',
      proname: '归类名称',
      type: 3,
      width: 130,
      required: true
    },
    {
      prokey: 'taxRate',
      proname: '销售税率',
      type: 0,
      width: 100
    },
    {
      prokey: 'brandName',
      proname: '品牌',
      type: 2,
      width: 120,
      required: true,
      sel: 2
    },
    {
      prokey: 'seriesUuid',
      proname: '系列',
      type: 3,
      width: 130,
    },
    {
      prokey: 'productNameType',
      proname: '是否自定义商品名称',
      type: 0,
      width: 140,
      required: false
    },
    {
      prokey: 'productName',
      proname: '商品名称',
      type: 'diff',
      width: 150,
      required: false,
      maxlength: 30
    },
    {
      prokey: 'material',
      proname: '材质',
      type: 1,
      width: 100
    },
    {
      prokey: 'mainCategoryName',
      proname: '主品类名称',
      type: 1,
      width: 200,
      required: true,
      maxlength: 30
    },
    {
      prokey: 'specModel',
      proname: '规格',
      type: 1,
      width: 200,
      required: true,
      maxlength: 30,
    },
    {
      prokey: 'unitName',
      proname: '计量单位',
      type: 0,
      width: 100,
    },
    {
      prokey: 'edge1',
      proname: '最长边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'edge2',
      proname: '次长边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'edge3',
      proname: '最短边(cm)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'volume',
      proname: '体积(m3)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'weight',
      proname: '重量(kg)',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'canCustom',
      proname: '是否定制',
      type: 3,
      width: 100,
      required: true
    },
    {
      prokey: 'note',
      proname: '特殊要求说明',
      type: 1,
      width: 170
    },
    {
      prokey: 'purchasePrice',
      proname: '进价',
      type: 1,
      width: 100,
      isNum: true
    },
    {
      prokey: 'costPrice',
      proname: '成本价',
      type: 1,
      width: 100,
      // required: true,
      isNum: true
    },
    {
      prokey: 'sellPrice',
      proname: '售价',
      type: 1,
      width: 100,
      isNum: true,
      // required: true
    },
    /* {
      proname: '折扣价',
      prokey: 'salePrice',
      type: 0,
      width: 90
    }, */
    {
      prokey: 'salePlatCodes',
      proname: '售卖平台',
      type: 3,
      width: 200,
      required: true
    },
    {
      prokey: 'saleAreaStr',
      proname: '销售区域',
      type: 2,
      width: 150,
      required: true,
      sel: 6
    },
    {
      prokey: 'saleMin',
      proname: '最小起售量',
      type: 1,
      width: 100,
      isNum: true,
      required: true
    },
    {
      prokey: 'saleResType',
      proname: '销售限制类型',
      type: 3,
      width: 150,
      required: true
    },
    {
      prokey: 'arrivalPeriod',
      proname: '到货周期',
      type: 1,
      width: 100,
      isNum: true,
    },
    {
      prokey: 'createOpeName',
      proname: '创建人',
      type: 0,
      width: 100
    },
    {
      prokey: 'opeTime',
      proname: '创建时间',
      type: 0,
      width: 100
    },
    {
      prokey: 'operDeptName',
      proname: '创建人部门',
      type: 0,
      width: 100
    },
  ],
  saveParame: {
    awardPolicy: '',
    brandUuid: '',
    brandName: '',
    canCustom: '',
    categoryUuid: '',
    categoryName: '',
    classificationUuid: '',
    classificationName: '',
    cloudState: '',
    costPrice: '',
    edge1: '',
    edge2: '',
    edge3: '',
    mainCategoryName: '',
    material: '',
    note: '',
    onLine: '',
    otherSpuNo: '',
    purchasePrice: '',
    saleCity: '',
    sellPrice: '',
    situation: '',
    skuNo: '',
    specModel: '',
    spuNo: '',
    spuNoType: '',
    unitUuid: '',
    unitName: '',
    uuid: '',
    volume: '',
    weight: '',
    saleMin: '',
    saleResType: 1,
    arrivalPeriod: '',
  },
  submitRequired: ['categoryName', 'classificationName', 'specModel', 'unitName', 'brandName', 'canCustom', 'purchasePrice', 'costPrice', 'sellPrice'],
  submitParame: {}
}
